package com.tinglv.imguider.dao;

import com.tinglv.imguider.entity.Admin;
import org.beetl.sql.core.annotatoin.SqlResource;
import org.beetl.sql.core.annotatoin.SqlStatement;
import org.beetl.sql.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

/**
 * 管理员数据访问层
 *
 * @author hochen
 * @date 2017/11/27 0027.
 */
@SqlResource("admin") @Repository public interface AdminDao extends BaseMapper<Admin> {

    /**
     * xxxx
     *
     * @param name
     * @return
     */
    @SqlStatement(params = "name") Admin findByName(String name);

}
